{% extends '@theme/base.html.twig' %}

{% block body %}
<div class="container-fluid p-4">
    <div class="container">
        <div class="row">
            <div class="offset-2 col-lg-8">
                <div class="alert alert-warning text-center" role="alert">
                    <h4 class="alert-heading">Are you sure?</h4>
                    <p class="mb-0">This operation can't be undone.</p>
                    <p class="mb-0">Removing offer will not regenerate quota for adding new offers.</p>
                    {% if facebookPost %}
                        <p class="mb-0">Removing offer will not remove it from <a target="_blank" href="{{ facebookPost.id|fb_group_post }}">Facebook</a>.</p>
                    {% endif %}
                    {% if tweet %}
                        <p class="mb-0">Removing offer will not remove it from <a target="_blank" href="{{ tweet.url(specialization) }}">Twitter</a>.</p>
                    {% endif %}

                    {% if offer|offer_auto_renews_left > 0 %}
                        <p class="mb-0">
                            This offer still have {{ offer|offer_auto_renews_left }} auto renews left, that will be lost with the offer.
                        </p>
                    {% endif %}
                </div>
                <div class="text-center">
                    <a href="{{ url('offer', {offerSlug: offerSlug}) }}" class="btn btn-primary">Don't remove</a>
                    <a data-remove-offer href="{{ url('offer_remove', {offerSlug: offerSlug}) }}" class="btn btn-danger">Yes, remove</a>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}